<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
        <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script>
	$(document).ready(function(){
		 var id = $(":input[name=memberId]").val();
		$(":input[name=sellRequest]").click(function(){
			if(confirm("관리자에게 판맨자권한을 신청하시겠습니까?")){
				location.href = "${initParam.root}member/sellRequest.moja?memberId="+ id;
			}
		});
	});
</script>
<div id="mainCss" align="center">
<form name="updateForm" action="${initParam.root}member/auth_updateMember.moja" method="post">
<table border="1">
<tr>
<td colspan="2" bgcolor="black" align="center"><br><font color="#FFFFFF" size="4">회 원 정 보 수 정</font><br><br></td>
</tr>
<tr>
<td>id </td><td><input type="text" name="memberId" value="${sessionScope.mvo.memberId}" readonly="readonly"></td>
</tr>
<tr>
<td>pass</td><td><input type="text" name="memberPassword" value="${sessionScope.mvo.memberPassword}"></td>
</tr>
<tr>
<td>name</td><td><input type="text" name="memberName" value="${sessionScope.mvo.memberName}"></td>
</tr>
<tr>
<td>nickname</td><td><input type="text" name="memberNickname" value="${sessionScope.mvo.memberNickname}"></td>
</tr>
<tr>
<td colspan="2">남자<input type="radio" name="memberGender" value="남자" checked="checked">&nbsp;&nbsp;
여자<input type="radio" name="memberGender" value="여자"></td>
</tr>
<tr>
 <td>birthday</td><td><input type="date" name="memberBirthday" value="${sessionScope.mvo.memberBirthday }"></td>
</tr>
<tr>
<td>e-mail</td><td><input type="email" name="memberEmail" value="${sessionScope.mvo.memberEmail}"></td>
</tr>
<tr>
<td>phone</td><td><input type="tel" name="memberPhone" value="${sessionScope.mvo.memberPhone}"></td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" value="수정하기" >
<c:if test="${sessionScope.mvo.memberSellAuthority == 'fail' ||sessionScope.mvo.memberSellAuthority == null  }">
	<input type = "button" value = "판매권한 신청" name = "sellRequest">
</c:if>
</div>
</td>
</tr>
</table>
</form>
</div>







